//
//  SpringTableViewCell.m
//  ProjectA
//
//  Created by dlios on 15-3-5.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "SpringTableViewCell.h"

@implementation SpringTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self show];
    }
    return self;
}

- (void)show
{
    
    //占位食物图片
    UIImage *placeholderImage = [UIImage imageNamed:@"homePage副本.png"];
    self.imageV = [[UIImageView alloc] initWithImage:placeholderImage];
    self.imageV.frame = CGRectMake(3, 0, 80, 62);
    [self.contentView addSubview:self.imageV];
    //菜名
    self.nameLable = [[UILabel alloc] init];
    self.nameLable.frame = CGRectMake(self.imageV.frame.origin.x + self.imageV.frame.size.width + 16, 3, 200, 28);
    //self.nameLable.backgroundColor = [UIColor cyanColor];
    [self.contentView addSubview:self.nameLable];
    //食材
    self.foodLable = [[UILabel alloc] init];
    self.foodLable.frame = CGRectMake(self.nameLable.frame.origin.x, self.nameLable.frame.size.height + 10, 260, 15);
    //self.foodLable.backgroundColor = [UIColor cyanColor];
    self.foodLable.font = [UIFont systemFontOfSize:11];
    [self.contentView addSubview:self.foodLable];
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
